package com.fzkj.project.service.impl;

import java.util.List;

import com.fzkj.project.entiy.PracticeTask;
import com.fzkj.project.mapper.PracticeTaskMapper;
import com.fzkj.project.service.IPracticeTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 实践任务Service业务层处理
 * 
 * @author zhangmx
 * @date 2024-11-12
 */
@Service
public class PracticeTaskServiceImpl implements IPracticeTaskService
{
    @Autowired
    private PracticeTaskMapper practiceTaskMapper;

    /**
     * 查询实践任务
     * 
     * @param id 实践任务主键
     * @return 实践任务
     */
    @Override
    public PracticeTask selectPracticeTaskById(Long id)
    {
        return practiceTaskMapper.selectPracticeTaskById(id);
    }

    /**
     * 查询实践任务列表
     * 
     * @param practiceTask 实践任务
     * @return 实践任务
     */
    @Override
    public List<PracticeTask> selectPracticeTaskList(PracticeTask practiceTask)
    {
        return practiceTaskMapper.selectPracticeTaskList(practiceTask);
    }

    /**
     * 新增实践任务
     * 
     * @param practiceTask 实践任务
     * @return 结果
     */
    @Override
    public int insertPracticeTask(PracticeTask practiceTask)
    {
        return practiceTaskMapper.insertPracticeTask(practiceTask);
    }

    /**
     * 修改实践任务
     * 
     * @param practiceTask 实践任务
     * @return 结果
     */
    @Override
    public int updatePracticeTask(PracticeTask practiceTask)
    {
        return practiceTaskMapper.updatePracticeTask(practiceTask);
    }

    /**
     * 批量删除实践任务
     * 
     * @param ids 需要删除的实践任务主键
     * @return 结果
     */
    @Override
    public int deletePracticeTaskByIds(Long[] ids)
    {
        return practiceTaskMapper.deletePracticeTaskByIds(ids);
    }

    /**
     * 删除实践任务信息
     * 
     * @param id 实践任务主键
     * @return 结果
     */
    @Override
    public int deletePracticeTaskById(Long id)
    {
        return practiceTaskMapper.deletePracticeTaskById(id);
    }
}
